if (GTK_IS_CONSTRAINT (item) || GTK_IS_CONSTRAINT_GUIDE (item))
{
button = gtk_button_new_from_icon_name ("document-edit-symbolic");
- gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (button), FALSE);
g_signal_connect (button, "clicked", G_CALLBACK (row_edit), win);
g_object_set_data (G_OBJECT (row), "edit", button);
gtk_container_add (GTK_CONTAINER (box), button);
button = gtk_button_new_from_icon_name ("edit-delete-symbolic");
- gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (button), FALSE);
g_signal_connect (button, "clicked", G_CALLBACK (row_delete), win);
gtk_container_add (GTK_CONTAINER (box), button);
}
else if (GTK_IS_WIDGET (item))
{
button = gtk_button_new_from_icon_name ("edit-delete-symbolic");
- gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (button), FALSE);
g_signal_connect (button, "clicked", G_CALLBACK (row_delete), win);
gtk_container_add (GTK_CONTAINER (box), button);
}
gtk_container_add (GTK_CONTAINER (tag->button), image);
gtk_widget_set_halign (tag->button, GTK_ALIGN_CENTER);
gtk_widget_set_valign (tag->button, GTK_ALIGN_CENTER);
- gtk_button_set_relief (GTK_BUTTON (tag->button), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (tag->button), FALSE);
gtk_container_add (GTK_CONTAINER (tag->box), tag->button);
g_signal_connect (tag->button, "clicked", G_CALLBACK (on_button_clicked), tag);
}
gtk_container_add (GTK_CONTAINER (menu), box);
item = gtk_button_new_with_label ("New Label");
- gtk_button_set_relief (GTK_BUTTON (item), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (item), FALSE);
g_signal_connect (item, "clicked", G_CALLBACK (new_label_cb), widget);
gtk_container_add (GTK_CONTAINER (box), item);
item = gtk_button_new_with_label ("New Spinner");
- gtk_button_set_relief (GTK_BUTTON (item), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (item), FALSE);
g_signal_connect (item, "clicked", G_CALLBACK (new_spinner_cb), widget);
gtk_container_add (GTK_CONTAINER (box), item);
gtk_container_add (GTK_CONTAINER (box), item);
item = gtk_button_new_with_label ("Edit");
- gtk_button_set_relief (GTK_BUTTON (item), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (item), FALSE);
gtk_widget_set_sensitive (item, child != NULL && child != widget);
g_signal_connect (item, "clicked", G_CALLBACK (edit_cb), child);
gtk_container_add (GTK_CONTAINER (box), item);
gtk_container_add (GTK_CONTAINER (box), item);
item = gtk_button_new_with_label ("Cut");
- gtk_button_set_relief (GTK_BUTTON (item), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (item), FALSE);
gtk_widget_set_sensitive (item, child != NULL && child != widget);
g_signal_connect (item, "clicked", G_CALLBACK (cut_cb), child);
gtk_container_add (GTK_CONTAINER (box), item);
item = gtk_button_new_with_label ("Copy");
- gtk_button_set_relief (GTK_BUTTON (item), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (item), FALSE);
gtk_widget_set_sensitive (item, child != NULL && child != widget);
g_signal_connect (item, "clicked", G_CALLBACK (copy_cb), child);
gtk_container_add (GTK_CONTAINER (box), item);
item = gtk_button_new_with_label ("Paste");
- gtk_button_set_relief (GTK_BUTTON (item), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (item), FALSE);
clipboard = gdk_display_get_clipboard (gdk_display_get_default ());
gtk_widget_set_sensitive (item,
gdk_content_formats_contain_gtype (gdk_clipboard_get_formats (clipboard), GTK_TYPE_DEMO_WIDGET));
g_signal_connect (item, "clicked", G_CALLBACK (paste_cb), widget);
gtk_container_add (GTK_CONTAINER (box), item);
item = gtk_button_new_with_label ("Delete");
- gtk_button_set_relief (GTK_BUTTON (item), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (item), FALSE);
gtk_widget_set_sensitive (item, child != NULL && child != widget);
g_signal_connect (item, "clicked", G_CALLBACK (delete_cb), child);
gtk_container_add (GTK_CONTAINER (box), item);
<child type="end">
<object class="GtkToggleButton" id="changes_allow">
<property name="icon-name">changes-allow</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<signal name="notify::active" handler="fishbowl_changes_toggled_cb"/>
</object>
</child>
<object class="GtkButton" id="button2">
<property name="receives-default">1</property>
<property name="valign">baseline</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<child>
<object class="GtkLabel" id="source_name">
<property name="valign">baseline</property>
<object class="GtkLinkButton" id="resent_by_button">
<property name="label" translatable="0">reshareer</property>
<property name="receives-default">1</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="uri">http://www.gtk.org</property>
</object>
</child>
<object class="GtkButton" id="expand_button">
<property name="label" translatable="yes">Expand</property>
<property name="receives-default">1</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<signal name="clicked" handler="expand_clicked" swapped="yes"/>
</object>
</child>
<object class="GtkButton" id="reply-button">
<property name="label" translatable="yes">Reply</property>
<property name="receives-default">1</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
</object>
</child>
<child>
<object class="GtkButton" id="reshare-button">
<property name="label" translatable="yes">Reshare</property>
<property name="receives-default">1</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<signal name="clicked" handler="reshare_clicked" swapped="yes"/>
</object>
</child>
<object class="GtkButton" id="favorite-buttton">
<property name="label" translatable="yes">Favorite</property>
<property name="receives-default">1</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<signal name="clicked" handler="favorite_clicked" swapped="yes"/>
</object>
</child>
<object class="GtkButton" id="button5">
<property name="label" translatable="yes">Details</property>
<property name="receives-default">1</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<style>
<class name="dim-label"/>
</style>
<property name="label" translatable="yes">link button</property>
<property name="receives-default">1</property>
<property name="has-tooltip">1</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="uri">http://www.gtk.org</property>
</object>
</child>
<child>
<object class="GtkButton" id="page2dismiss">
<property name="focus-on-click">0</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="icon-name">window-close-symbolic</property>
</object>
</child>
</child>
<child>
<object class="GtkButton">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="focus-on-click">0</property>
<property name="icon-name">window-close-symbolic</property>
<signal name="clicked" handler="tab_close_cb" object="closable_page_1"/>
</child>
<child>
<object class="GtkButton">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="focus-on-click">0</property>
<property name="icon-name">window-close-symbolic</property>
<signal name="clicked" handler="tab_close_cb" object="closable_page_2"/>
gtk_button_new_with_label
gtk_button_new_with_mnemonic
gtk_button_new_from_icon_name
-gtk_button_set_relief
-gtk_button_get_relief
+gtk_button_set_has_frame
+gtk_button_get_has_frame
gtk_button_get_label
gtk_button_set_label
gtk_button_get_use_underline
enum {
PROP_0,
PROP_LABEL,
- PROP_RELIEF,
+ PROP_HAS_FRAME,
PROP_USE_UNDERLINE,
PROP_ICON_NAME,
FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
- props[PROP_RELIEF] =
- g_param_spec_enum ("relief",
- P_("Border relief"),
- P_("The border relief style"),
- GTK_TYPE_RELIEF_STYLE,
- GTK_RELIEF_NORMAL,
- GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
+ props[PROP_HAS_FRAME] =
+ g_param_spec_boolean ("has-frame",
+ P_("Has Frame"),
+ P_("Whether the button has a frame"),
+ TRUE,
+ GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
props[PROP_ICON_NAME] =
g_param_spec_string ("icon-name",
case PROP_LABEL:
gtk_button_set_label (button, g_value_get_string (value));
break;
- case PROP_RELIEF:
- gtk_button_set_relief (button, g_value_get_enum (value));
+ case PROP_HAS_FRAME:
+ gtk_button_set_has_frame (button, g_value_get_boolean (value));
break;
case PROP_USE_UNDERLINE:
gtk_button_set_use_underline (button, g_value_get_boolean (value));
case PROP_LABEL:
g_value_set_string (value, gtk_button_get_label (button));
break;
- case PROP_RELIEF:
- g_value_set_enum (value, gtk_button_get_relief (button));
+ case PROP_HAS_FRAME:
+ g_value_set_boolean (value, gtk_button_get_has_frame (button));
break;
case PROP_USE_UNDERLINE:
g_value_set_boolean (value, priv->use_underline);
}
/**
- * gtk_button_set_relief:
- * @button: The #GtkButton you want to set relief styles of
- * @relief: The GtkReliefStyle as described above
+ * gtk_Button_set_has_frame:
+ * @button: a #GtkButton
+ * @has_frame: whether the button should have a visible frame
*
- * Sets the relief style of the edges of the given #GtkButton widget.
- * Two styles exist, %GTK_RELIEF_NORMAL and %GTK_RELIEF_NONE.
- * The default style is, as one can guess, %GTK_RELIEF_NORMAL.
+ * Sets the style of the button. Buttons can has a flat appearance
+ * or have a frame drawn around them.
*/
void
-gtk_button_set_relief (GtkButton *button,
- GtkReliefStyle relief)
+gtk_button_set_has_frame (GtkButton *button,
+ gboolean has_frame)
{
- GtkReliefStyle old_relief;
g_return_if_fail (GTK_IS_BUTTON (button));
- old_relief = gtk_button_get_relief (button);
- if (old_relief != relief)
- {
- if (relief == GTK_RELIEF_NONE)
- gtk_widget_add_css_class (GTK_WIDGET (button), GTK_STYLE_CLASS_FLAT);
- else
- gtk_widget_remove_css_class (GTK_WIDGET (button), GTK_STYLE_CLASS_FLAT);
+ if (gtk_button_get_has_frame (button) == has_frame)
+ return;
- g_object_notify_by_pspec (G_OBJECT (button), props[PROP_RELIEF]);
- }
+ if (has_frame)
+ gtk_widget_remove_css_class (GTK_WIDGET (button), GTK_STYLE_CLASS_FLAT);
+ else
+ gtk_widget_add_css_class (GTK_WIDGET (button), GTK_STYLE_CLASS_FLAT);
+
+ g_object_notify_by_pspec (G_OBJECT (button), props[PROP_HAS_FRAME]);
}
/**
- * gtk_button_get_relief:
- * @button: The #GtkButton you want the #GtkReliefStyle from.
+ * gtk_button_get_has_frame:
+ * @button: a #GtkButton
*
- * Returns the current relief style of the given #GtkButton.
+ * Returns whether the button has a frame.
*
- * Returns: The current #GtkReliefStyle
+ * Returns: %TRUE if the button has a frame
*/
-GtkReliefStyle
-gtk_button_get_relief (GtkButton *button)
+gboolean
+gtk_button_get_has_frame (GtkButton *button)
{
- g_return_val_if_fail (GTK_IS_BUTTON (button), GTK_RELIEF_NORMAL);
+ g_return_val_if_fail (GTK_IS_BUTTON (button), TRUE);
- if (gtk_widget_has_css_class (GTK_WIDGET (button), GTK_STYLE_CLASS_FLAT))
- return GTK_RELIEF_NONE;
- else
- return GTK_RELIEF_NORMAL;
+ return !gtk_widget_has_css_class (GTK_WIDGET (button), GTK_STYLE_CLASS_FLAT);
}
static void
GtkWidget* gtk_button_new_with_mnemonic (const gchar *label);
GDK_AVAILABLE_IN_ALL
-void gtk_button_set_relief (GtkButton *button,
- GtkReliefStyle relief);
+void gtk_button_set_has_frame (GtkButton *button,
+ gboolean has_frame);
GDK_AVAILABLE_IN_ALL
-GtkReliefStyle gtk_button_get_relief (GtkButton *button);
+gboolean gtk_button_get_has_frame (GtkButton *button);
GDK_AVAILABLE_IN_ALL
void gtk_button_set_label (GtkButton *button,
const gchar *label);
GdkContentProvider *content;
GtkDragSource *source;
- gtk_button_set_relief (GTK_BUTTON (link_button), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (link_button), FALSE);
gtk_widget_set_state_flags (GTK_WIDGET (link_button), GTK_STATE_FLAG_LINK, FALSE);
gtk_widget_set_has_tooltip (GTK_WIDGET (link_button), TRUE);
gtk_menu_button_set_relief (GtkMenuButton *menu_button,
GtkReliefStyle relief)
{
+ gboolean has_frame;
+
g_return_if_fail (GTK_IS_MENU_BUTTON (menu_button));
- if (relief == gtk_button_get_relief (GTK_BUTTON (menu_button->button)))
+ has_frame = relief == GTK_RELIEF_NORMAL;
+ if (gtk_button_get_has_frame (GTK_BUTTON (menu_button->button)) == has_frame)
return;
- gtk_button_set_relief (GTK_BUTTON (menu_button->button), relief);
+ gtk_button_set_has_frame (GTK_BUTTON (menu_button->button), has_frame);
g_object_notify_by_pspec (G_OBJECT (menu_button), menu_button_props[PROP_RELIEF]);
}
{
g_return_val_if_fail (GTK_IS_MENU_BUTTON (menu_button), GTK_RELIEF_NORMAL);
- return gtk_button_get_relief (GTK_BUTTON (menu_button->button));
+ return gtk_button_get_has_frame (GTK_BUTTON (menu_button->button))
+ ? GTK_RELIEF_NORMAL : GTK_RELIEF_NONE;
}
/**
}
menu_item = gtk_button_new ();
- gtk_button_set_relief (GTK_BUTTON (menu_item), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (menu_item), FALSE);
gtk_container_add (GTK_CONTAINER (menu_item), page->menu_label);
gtk_container_add (GTK_CONTAINER (notebook->menu_box), menu_item);
g_signal_connect (menu_item, "clicked",
button = gtk_button_new_from_icon_name ("window-close-symbolic");
gtk_widget_set_halign (button, GTK_ALIGN_END);
gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
- gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (button), FALSE);
gtk_widget_add_css_class (button, "sidebar-button");
gtk_grid_attach (GTK_GRID (grid), button, 1, 0, 1, 2);
<property name="margin-bottom">6</property>
<child>
<object class="GtkToggleButton" id="disable_button">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="tooltip-text" translatable="yes">Disable this custom CSS</property>
<property name="icon-name">media-playback-pause-symbolic</property>
<signal name="toggled" handler="disable_toggled"/>
</child>
<child>
<object class="GtkButton" id="save_button">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="tooltip-text" translatable="yes">Save the current CSS</property>
<property name="icon-name">document-save-symbolic</property>
<signal name="clicked" handler="save_clicked"/>
<property name="margin-bottom">6</property>
<child>
<object class="GtkToggleButton" id="show_button">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="tooltip-text" translatable="yes">Show data</property>
<property name="icon-name">view-refresh-symbolic</property>
<signal name="toggled" handler="toggle_show"/>
child = g_object_new (GTK_TYPE_BOX, "css-name", "expander", NULL);
title = g_object_new (GTK_TYPE_TOGGLE_BUTTON, "css-name", "title", NULL);
- gtk_button_set_relief (GTK_BUTTON (title), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (title), FALSE);
g_object_bind_property (row_item, "expanded", title, "active", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
gtk_container_add (GTK_CONTAINER (child), title);
child = g_object_new (GTK_TYPE_BOX, "css-name", "expander", NULL);
title = g_object_new (GTK_TYPE_TOGGLE_BUTTON, "css-name", "title", NULL);
- gtk_button_set_relief (GTK_BUTTON (title), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (title), FALSE);
g_object_bind_property (row_item, "expanded", title, "active", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
gtk_container_add (GTK_CONTAINER (child), title);
g_object_set_data_full (G_OBJECT (row), "make-sure-its-not-unreffed", g_object_ref (row_item), g_object_unref);
gtk_container_add (GTK_CONTAINER (hbox), label);
button = gtk_toggle_button_new ();
- gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (button), FALSE);
gtk_button_set_icon_name (GTK_BUTTON (button), "view-more-symbolic");
gtk_container_add (GTK_CONTAINER (hbox), button);
<property name="margin-bottom">6</property>
<child>
<object class="GtkToggleButton">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="icon-name">media-record-symbolic</property>
<property name="tooltip-text" translatable="yes">Record frames</property>
<property name="active" bind-source="GtkInspectorRecorder" bind-property="recording" bind-flags="bidirectional|sync-create"/>
</child>
<child>
<object class="GtkButton">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="icon-name">edit-clear-all-symbolic</property>
<property name="tooltip-text" translatable="yes">Clear recorded frames</property>
<signal name="clicked" handler="recordings_clear_all"/>
</child>
<child>
<object class="GtkToggleButton">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="icon-name">insert-object-symbolic</property>
<property name="tooltip-text" translatable="yes">Add debug nodes</property>
<property name="active" bind-source="GtkInspectorRecorder" bind-property="debug-nodes" bind-flags="bidirectional|sync-create"/>
</child>
<child>
<object class="GtkButton" id="render_node_save_button">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="sensitive">0</property>
<property name="icon-name">document-save-as-symbolic</property>
<property name="tooltip-text" translatable="yes">Save selected node</property>
<object class="GtkButton">
<property name="icon-name">go-previous-symbolic</property>
<property name="tooltip-text" translatable="yes">Toggle Sidebar</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="margin-start">6</property>
<property name="margin-end">6</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="icon-name">view-refresh-symbolic</property>
<property name="tooltip-text" translatable="yes">Refresh action state</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
</object>
</property>
</object>
</style>
<child>
<object class="GtkButton" id="recent.button">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="tooltip-text" translatable="yes" context="emoji category">Recent</property>
<style>
<class name="emoji-section"/>
</child>
<child>
<object class="GtkButton" id="people.button">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="tooltip-text" translatable="yes" context="emoji category">Smileys & People</property>
<style>
<class name="emoji-section"/>
</child>
<child>
<object class="GtkButton" id="body.button">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="tooltip-text" translatable="yes" context="emoji category">Body & Clothing</property>
<style>
<class name="emoji-section"/>
</child>
<child>
<object class="GtkButton" id="nature.button">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="tooltip-text" translatable="yes" context="emoji category">Animals & Nature</property>
<style>
<class name="emoji-section"/>
</child>
<child>
<object class="GtkButton" id="food.button">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="tooltip-text" translatable="yes" context="emoji category">Food & Drink</property>
<style>
<class name="emoji-section"/>
</child>
<child>
<object class="GtkButton" id="travel.button">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="tooltip-text" translatable="yes" context="emoji category">Travel & Places</property>
<style>
<class name="emoji-section"/>
</child>
<child>
<object class="GtkButton" id="activities.button">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="tooltip-text" translatable="yes" context="emoji category">Activities</property>
<style>
<class name="emoji-section"/>
</child>
<child>
<object class="GtkButton" id="objects.button">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="tooltip-text" translatable="yes" context="emoji category">Objects</property>
<style>
<class name="emoji-section"/>
</child>
<child>
<object class="GtkButton" id="symbols.button">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="tooltip-text" translatable="yes" context="emoji category">Symbols</property>
<style>
<class name="emoji-section"/>
</child>
<child>
<object class="GtkButton" id="flags.button">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="tooltip-text" translatable="yes" context="emoji category">Flags</property>
<style>
<class name="emoji-section"/>
<property name="receives-default">1</property>
<property name="focus-on-click">0</property>
<property name="icon-name">image-missing</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
</object>
</child>
</template>
<child>
<object class="GtkButton" id="plus_button">
<property name="receives-default">1</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="icon-name">list-add-symbolic</property>
<child>
<object class="GtkButton" id="minus_button">
<property name="receives-default">1</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="icon-name">list-remove-symbolic</property>
child = g_object_new (GTK_TYPE_BOX, "css-name", "expander", NULL);
title = g_object_new (GTK_TYPE_TOGGLE_BUTTON, "css-name", "title", NULL);
- gtk_button_set_relief (GTK_BUTTON (title), GTK_RELIEF_NONE);
+ gtk_button_set_has_frame (GTK_BUTTON (title), FALSE);
g_object_bind_property (item, "expanded", title, "active", G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
g_object_set_data_full (G_OBJECT (title), "make-sure-its-not-unreffed", g_object_ref (item), g_object_unref);
gtk_container_add (GTK_CONTAINER (child), title);
<property name="label" translatable="yes">link button</property>
<property name="receives-default">1</property>
<property name="has-tooltip">1</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="uri">http://www.gtk.org</property>
</object>
</child>
<child>
<object class="GtkButton" id="page2dismiss">
<property name="focus-on-click">0</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="icon-name">window-close-symbolic</property>
</object>
</child>
</child>
<child>
<object class="GtkButton">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="focus-on-click">0</property>
<property name="icon-name">window-close-symbolic</property>
<style>
</child>
<child>
<object class="GtkButton">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="focus-on-click">0</property>
<property name="icon-name">window-close-symbolic</property>
<style>
<child>
<object class="GtkButton" id="page2dismiss">
<property name="focus-on-click">0</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="icon-name">window-close-symbolic</property>
</object>
</child>
</child>
<child>
<object class="GtkButton">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="focus-on-click">0</property>
<property name="icon-name">window-close-symbolic</property>
<style>
</child>
<child>
<object class="GtkButton">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="focus-on-click">0</property>
<property name="icon-name">window-close-symbolic</property>
<style>
<property name="label" translatable="yes">link button</property>
<property name="receives-default">1</property>
<property name="has-tooltip">1</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="uri">http://www.gtk.org</property>
</object>
</child>
<child>
<object class="GtkButton" id="page2dismiss">
<property name="focus-on-click">0</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="icon-name">window-close-symbolic</property>
</object>
</child>
</child>
<child>
<object class="GtkButton">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="focus-on-click">0</property>
<property name="icon-name">window-close-symbolic</property>
<style>
</child>
<child>
<object class="GtkButton">
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="focus-on-click">0</property>
<property name="icon-name">window-close-symbolic</property>
<style>
<object class="GtkLinkButton" id="linkbutton1">
<property name="label" translatable="yes">A normal link</property>
<property name="receives_default">1</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="uri">http://gnome.org</property>
</object>
</child>
<object class="GtkLinkButton" id="linkbutton2">
<property name="label" translatable="yes">A visited link</property>
<property name="receives_default">1</property>
- <property name="relief">none</property>
+ <property name="has-frame">0</property>
<property name="uri">http://gnome.org</property>
<property name="visited">1</property>
</object>